package animationGame;

public class Rectangle extends GeometricObject{
	public Rectangle(double w, double h, Vertex pos){
		super(w, h, pos);
	}
	
	public Rectangle(double w, double h, double x, double y){
		super(w, h, new Vertex(x,y));
	}
	
	public Rectangle(double w, double h){
		super(w, h);
	}
	public @Override String toString(){
		return "Rectangle("+super.toString()+")";
	}
	
	public @Override boolean equals(Object that){
		return (that instanceof Rectangle) && super.equals(that);
	}
}
